<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'member-_form-form',
    'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
    'clientOptions'=>array(  
        'validateOnSubmit'=>true,  
     ),
)); ?>
<table class="table table-bordered table-hover definewidth m10">
    	<tr>
            <td width="10%" class="tableleft">
	        	<?php echo $form->labelEx($model,'username'); ?>
	        </td>
            <td>
		        <?php 
	        	echo $form->textField($model,'username');
	        	?>
		        <?php echo $form->error($model,'username'); ?>
	        </td>            
	    </tr>
   	    <tr>
            <td width="10%" class="tableleft">
        		<?php echo $form->labelEx($model,'email'); ?>
        	</td>
            <td>
		        <?php echo $form->textField($model,'email'); ?>
		        <?php echo $form->error($model,'email'); ?> 
	        </td>            
	    </tr>
	    
	    <tr>
            <td width="10%" class="tableleft">
        		<?php echo $form->labelEx($model,'password'); ?>
        	</td>
            <td>
		        <?php echo $form->passwordField($model,'password'); ?>
		        <?php echo $form->error($model,'password'); ?> 
	        </td>            
	    </tr>
	    
	    <tr>
            <td width="10%" class="tableleft">
        		<?php echo $form->labelEx($model,'password2'); ?>
        	</td>
            <td>
		        <?php echo $form->passwordField($model,'password2'); ?>
		        <?php echo $form->error($model,'password2'); ?> 
	        </td>            
	    </tr>
   	    <tr>
            <td width="10%" class="tableleft">
        		<?php echo $form->labelEx($model,'isactive'); ?>
        	</td>
            <td>
	        <?php echo $form->radioButtonList($model,'isactive',Yii::app()->dict->get('member','isactive'),array('separator'=>'&nbsp;')); ?>
	        <?php echo $form->error($model,'isactive'); ?>
	        </td>            
	    </tr>
		<tr>
	        <td class="tableleft"></td>
	        <td>
	        	<?php echo CHtml::submitButton('保存',array('class'=>'btn btn-primary'));?>
	            <?php echo CHtml::link('返回列表',$this->createUrl('member/index'),array('class'=>'btn btn-success'));?>
	        </td>
	    </tr>
</table>

<?php $this->endWidget(); ?>